package com.ff.cms.dao;


import com.ff.cms.bean.Article;
import com.ff.cms.bean.Comment;
import com.ff.cms.bean.Link;
import com.ff.cms.bean.Member;
import com.ff.cms.bean.Type;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FrontMapper {

	Member findMemberByMobile(Member member);

	Integer findMemberByMobile1(String mobile);

	void register(String mobile, String pwd);

	void register(Map<String, Object> map);

	void updateTime(Member m);

	List<Type> findTypeList();

	List<Link> findLinkList();

	List<Article> findArticleListByType(Map<String, Object> map);

	Article findArticleById(Integer id);

	List<Comment> findCommentByArtId(Integer id);

	void saveComment(Map<String, Object> map);

	int checkSC(@Param("id")Integer id, @Param("artId")Integer artId);

	void saveCollect(@Param("mebId")Integer mebId, @Param("artId")Integer artId);

	void deleteCollect(@Param("mebId")Integer mebId, @Param("artId")Integer artId);

	
}